package com.store.bookstore_backend.mapper;

import com.store.bookstore_backend.domain.Shopcar;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 14111
 * @description 针对表【shopcar(购物车表)】的数据库操作Mapper
 * @createDate 2024-12-21 10:17:48
 * @Entity com.store.bookstore_backend.domain.Shopcar
 */

public interface ShopcarMapper {
    public List<Shopcar> selectAllShopcar(Long userId);

    public void deleteById(Integer id);

    public void insertShopcar(Shopcar shopcar);

    public Shopcar selectShopcarByUserId(@Param("userId") Long userId, @Param("bookId") Integer bookId);

    public Shopcar selectShopcarById(Integer id);

    public void updateShopcarnum(Shopcar shopcar);
    public void updateById(@Param("id") Integer id, @Param("num") Integer num);
}




